<script setup>
import { DropdownMenuItem } from 'radix-vue'
import { cn } from '../../utils'

const props = defineProps({
  class: { type: String, required: false, default: '' },
  inset: { type: Boolean, required: false },
})
</script>

<template>
  <DropdownMenuItem
    v-bind="$attrs"
    :class="cn(
      'focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
      inset && 'pl-8',
      props.class,
    )"
  >
    <slot />
  </DropdownMenuItem>
</template>
